<%@ page language="java" pageEncoding="utf-8" %>
<%@page import="com.hydra.wiki.web.constant.FarmConstant" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/pf/tag" prefix="PF" %>
<%@ taglib uri="/doc/tag" prefix="DOC" %>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"
     style="margin: 0px;">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
            <span class="icon-bar"></span> <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand"
           style="color: #ffffff; font-weight: bold; padding: 5px;"
           href="<DOC:defaultIndexPage/>"> <img
                src="<PF:basePath/>/text/img/logo.png" height="40" alt="Hydra"
                title="信仰知识图谱" align="middle"/>
        </a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <PF:IfParameterEquals key="config.sys.opensource" val="false">
                <li><a href="home/Pubindex.html"><span
                        class="glyphicon glyphicon-home"></span>&nbsp;知识</a></li>
            </PF:IfParameterEquals>
            <li><a href="webtype/view/Pub1.html"><span
                    class="glyphicon glyphicon-th"></span>&nbsp;分类</a></li>
            <PF:IfParameterEquals key="config.sys.group.open" val="true">
                <li><a href="webgroup/PubHome.html"><span
                        class="glyphicon glyphicon-tree-conifer"></span>&nbsp;小组</a></li>
            </PF:IfParameterEquals>
            <PF:IfParameterEquals key="config.sys.stats.open" val="true">
                <li>
                    <a href="webstat/PubHome.html">
                        <span class="glyphicon glyphicon-stats"></span>&nbsp;知识推荐
                    </a>
                </li>
            <PF:IfParameterEquals key="config.sys.opensource" val="false">
                <li><a href="qa/view/Pub1.html"><span
                        class="glyphicon glyphicon-comment"></span>&nbsp;问答</a></li>
            </PF:IfParameterEquals>
            </PF:IfParameterEquals>
            <li><a href="graph/PubHome.html"><span
                    class="glyphicon glyphicon-link"></span>&nbsp;图谱</a></li>
            <PF:IfParameterEquals key="config.about" val="true">
                <li><a href="home/PubAbout.html"><span
                        class="glyphicon glyphicon-phone-alt"></span>&nbsp;联系方式</a></li>
            </PF:IfParameterEquals>
        </ul>
        <form action="websearch/PubDo.do" method="post"
              id="lucenesearchFormId"
              class="navbar-form navbar-left hidden-xs hidden-sm" role="search">
            <div class="form-group">
                <input type="text" name="word" id="wordId" value="${word}"
                       class="form-control input-sm" placeholder="查询公开资源"> <input
                    type="hidden" id="pageNumId" name="pagenum">
            </div>
            <button type="submit" class="btn btn-default btn-sm">检索</button>
            <jsp:include page="../operation/includeCreatOperate.jsp"></jsp:include>
        </form>
        <ul class="nav navbar-nav navbar-right" style="margin-right: 10px;">
            <c:if test="${USEROBJ==null}">
                <li><a href="login/webPage.html"><span
                        class="glyphicon glyphicon glyphicon-user"></span>&nbsp;登录</a></li>
            </c:if>
            <c:if test="${USEROBJ!=null}">
                <li><a href="webuser/PubHome.do"><span
                        class="glyphicon glyphicon-user"></span>&nbsp;${USEROBJ.name}</a></li>
                <li><a href="login/webout.html"><span
                        class="glyphicon glyphicon-off"></span>&nbsp;注销</a></li>
            </c:if>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
</div>
<script type="text/javascript">
    function luceneSearch(key) {
        $('#wordId').val(key);
        $('#lucenesearchFormId').submit();
    }

    function luceneSearchGo(page) {
        $('#pageNumId').val(page);
        $('#lucenesearchFormId').submit();
    }

    //-->
</script>